package com.software.chemistry.controller;

import com.software.chemistry.entity.StudentInfo;
import com.software.chemistry.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/student")
public class StudentController {
    @Autowired
    private StudentService studentService;

    //根据id查询用户信息
    @GetMapping("/findStudentInfoByUserId/{userId}")
    public StudentInfo findStudentInfoByUserId(@PathVariable String userId){
        StudentInfo studentInfo = studentService.findStudentInfoByUserId(userId) ;
        return studentInfo ;
    }




}
